#ifndef _VC10EA_

#include "gvar.h"

//------------ global variables for video capture

HWND			hwndParent=0;
HWND			hWndC=0;
HINSTANCE		hInst=0;
int				FrameNum=0;
CAP_PROCESS		cap_process=0;
BOOL			CaptureEnable=FALSE;
BOOL  CaptureEnableAudio = FALSE, CaptureEnableVideo = FALSE;

#else //ndef _VC10EA_

HWND			hwndParent;
HWND			hWndC;
HINSTANCE		hInst;
int				FrameNum;
CAP_PROCESS		cap_process;
BOOL			CaptureEnable;
BOOL  CaptureEnableAudio, CaptureEnableVideo;

#endif //ndef _VC10EA_

int             capW,capH;
int				QUALITY;
CAPLIBCREATESTRUCT g_cs;
WAVEFORMATEX AudioFormat;


void InitGlobals()
{
	// 8Khz 16 bits mono
	ZeroMemory(&AudioFormat, sizeof(WAVEFORMATEX));
	AudioFormat.wFormatTag         = WAVE_FORMAT_PCM;      
	AudioFormat.nChannels          = 1;
	AudioFormat.nSamplesPerSec     = 8000;
	AudioFormat.wBitsPerSample     = 16;
	AudioFormat.nBlockAlign        = 2;
	AudioFormat.nAvgBytesPerSec    = 16000;
}
